package com.chinasofti.io;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

public class Demo09 {
    public static void main(String[] args) throws IOException {
        FileWriter fw =
                new FileWriter("java419\\c.txt");
        Scanner sr = new Scanner(System.in);
        System.out.println("账号");
        String name = sr.next();
        System.out.println("密码");
        String acc = sr.next();


        fw.write(name);
        fw.write("\r\n");
        fw.write(acc);

        fw.close();

    }
}
